/*
 * Created on May 29, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.novix.portal.framework.model.impl;

import java.util.ArrayList;

import org.apache.commons.lang.StringUtils;

import com.novix.portal.framework.util.IConstants;
import com.novix.utility.web.AttachmentLoader;

/**
 * @author Dev
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class WebContact extends BaseModel {

    /**
	 * 
	 */
	private static final long serialVersionUID = -1964155564105094681L;
	/**
     *  
     */
    public WebContact() {
        super();
        // TODO Auto-generated constructor stub
    }
    private String spouseName;
    private String imageLink;

    private String fullName;

    private String jobTitle;

    private String webSite;

    private String internetAddress;

    private String officePhoneNumber;

    private String officeFaxNumber;

    private String id;

    private String lastName;

    private ArrayList categories;

    /**
     * @return Returns the internetAddress.
     */
    public String getInternetAddress() {
        return internetAddress;
    }

    /**
     * @param internetAddress
     *            The internetAddress to set.
     */
    public void setInternetAddress(String internetAddress) {
        this.internetAddress = internetAddress;
    }

    /**
     * @return Returns the jobTitle.
     */
    public String getJobTitle() {
        return jobTitle;
    }

    /**
     * @param jobTitle
     *            The jobTitle to set.
     */
    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    /**
     * @return Returns the webSite.
     */
    public String getWebSite() {
        return webSite;
    }

    /**
     * @param webSite
     *            The webSite to set.
     */
    public void setWebSite(String webSite) {
        this.webSite = webSite;
    }

    /**
     * @return Returns the imageLink.
     */
    public String getImageLink() {
        return this.imageLink;
    }

    /**
     * @param imageLink
     *            The imageLink to set.
     */
    public void setImageLink(String imageLink) {
        this.imageLink = imageLink;
    }

    public String getImageLinkHtml() {

        if (!StringUtils.contains(getImageLink(), IConstants.NO_IMAGE_FOUND) && AttachmentLoader.isValidFileName(getImageLink()))
            return "<img src=\"" + getImageLink() + "\" border=0 width=70px height=100px alt=\"User Picture\">";
        else
            return IConstants.NO_IMAGE_FOUND;
    }


    /**
     * @param itemValueString
     */
    public void setFullName(String itemValueString) {
        this.fullName = itemValueString;

    }

    /**
     * @return Returns the fullName.
     */
    public String getFullName() {
        return fullName;
    }

    /**
     * @return Returns the officePhoneNumber.
     */
    public String getOfficePhoneNumber() {
        return officePhoneNumber;
    }

    /**
     * @param officePhoneNumber
     *            The officePhoneNumber to set.
     */
    public void setOfficePhoneNumber(String officePhoneNumber) {
        this.officePhoneNumber = officePhoneNumber;
    }

    /**
     * @return Returns the id.
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            The id to set.
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @param itemValueString
     */
    public void setLastName(String itemValueString) {
        this.lastName = itemValueString;

    }

    /**
     * @return Returns the lastName.
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * @return Returns the officeFaxNumber.
     */
    public String getOfficeFaxNumber() {
        return officeFaxNumber;
    }

    /**
     * @param officeFaxNumber
     *            The officeFaxNumber to set.
     */
    public void setOfficeFaxNumber(String officeFaxNumber) {
        this.officeFaxNumber = officeFaxNumber;
    }
    /**
     * @return Returns the categories.
     */
    public ArrayList getCategories() {
        return categories;
    }
    /**
     * @param categories The categories to set.
     */
    public void setCategories(ArrayList categories) {
        this.categories = categories;
    }

	public String getSpouseName() {
		return spouseName;
	}

	public void setSpouseName(String spouseName) {
		this.spouseName = spouseName;
	}
}
